{% extends "base.html" %}

{% block title %}Remates{% endblock %}
{% block head %}Listado de remates{% endblock %}

{% block content %}
<div id="o5">
    <p>| <a href="/remates/agregar/">Agregar remate</a> | <a href="javascript:o('o2'); javascript:o('o5'); window.print();">Imprimir</a> |</p>
</div>
    <table class="tablesorter" align="center" id="sorter_clientes" border="0" cellpadding="0" cellspacing="1" style="width:970px;">
        <thead>
            <tr>
                <th>Fecha</th>
                <th>Observaciones</th>
                {% if perms.gestion.change_remitos %}
                    <th colspan="2"></th>
                {% else %}
                    <th></th>
                {% endif %}
            </tr>
        </thead>
        <tbody>
            {% for obj in todo %}
                <tr>
                    <td style="width:40px;">{{ obj.fecha|date:"SHORT_DATE_FORMAT"|default_if_none:"" }}</td>
                    <td>{{ obj.observaciones|default_if_none:"" }}</td>
                    <td class="right"><a href="/remates/listado/items/{{ obj.id|cut:"." }}/">Ver</a></td>
                    {% if perms.gestion.change_remitos %}
                        <td class="right"><a href="/remates/editar/{{ obj.id|cut:"." }}/">Editar</a></td>
                    {% endif %}
                </tr>
            {% endfor %}
        </tbody>
    </table>
    <br /><br /><br /><br /><br /><br />
{% endblock %}